<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>Document</title>
</head>
<body>
  <canvas id="canvas" width="800" height="600"></canvas>
  <script type="text/javascript">
      var oC = document.getElementById('canvas');
      var ctx = oC.getContext('2d');

      ctx.beginPath();

      ctx.rect(100,100,200,200);
      ctx.fill();
  </script>
</body>
</html>
